﻿using NUnit.Framework;

namespace SpellChecker.Tests
{
  [TestFixture]
  class TestCleanText
  {
    [Test]
    public void TestWithEmptyString()
    {
      var input = "";
      var result = SpellChecker.CleanText(input);
      var expected = "";

      Assert.That(result, Is.EqualTo(expected));
    }


    [Test]
    public void TestWithNullString()
    {
      var input = (string)null;
      var result = SpellChecker.CleanText(input);
      var expected = (string)null;

      Assert.That(result, Is.EqualTo(expected));
    }

    [Test]
    public void TestWithAnyStringButNotEmptyOrNull()
    {
      var input = "ewrwerweqöofopifdsopaim2rmflmcsd";
      var result = SpellChecker.CleanText(input);
      var expected = input;

      Assert.That(result, Is.EqualTo(expected));
    }


  }
}
